package com.first.orange.mapper;

import com.first.orange.beans.Brand;
import com.first.orange.beans.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created on 2021/7/5.
 * <p>
 * Author: wsw
 * <p>
 * Description:
 */
public interface ProductMapper {
    List<Product> selectProduct(@Param("searchMsg") String searchMsg);

    int selectProductCount(@Param("searchMsg")String searchMsg,@Param("brandId") String brandId, @Param("kindId")String kindId);

    List<Product> selectProductByCategory(@Param("searchMsg")String searchMsg,@Param("brandId") String brandId, @Param("kindId")String kindId,@Param("currPageNo") int currPageNo);

    Product selectProductById(String productId);
}
